<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.min.css" rel="stylesheet" type="text/css" />


<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/rock_customer_list.js"></script>

<script language="javascript" type="text/javascript" src="/Public/Js/blob.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/FileSaver.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.base64.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery-1.10.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/tableExport.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/xlsx.core.min.js"></script>
</head>

<body>

<style>
#flag{color:red;font-size:17px}
</style>
<form enctype="multipart/form-data" class="table-form" name="form1" method="post" action="<?php echo U('rock_customer_list_EditshareOK');?>">

<div class="nav-table">
<span class="on" href="table-one">修改</span>
<span href="table-two">扩展信息</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
<ul id="table-one">
<?php if(is_array($customer)): $i = 0; $__LIST__ = $customer;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><li>
   <label for="title"><span id="flag">*</span>客户名称</label>
   <input type="text" name="title" id="title" value="<?php echo ($list['name']); ?>"/>
   <input style="display:none" type="text" name="id" id="id" value="<?php echo ($list['id']); ?>"/>
  </li>
  <li>
   <label for="customerCompany">客户单位</label>
   <input type="text" name="customerCompany" id="customerCompany" value="<?php echo ($list['unitname']); ?>"/>
  </li>
  <li>
  <li>
   <label for="customerAddress"><span id="flag">*</span>地址</label>
   <input type="text" name="customerAddress" id="customerAddress" value="<?php echo ($list['address']); ?>" />
  </li>
  <li>
  <span>
 
  <li style="float:left;margin-left:0px;display:inline;">
   <label for="customerSource"><span id="flag">*</span>来源</label>
   <select name="customerSource" id="customerSource" >
     <option value="<?php echo ($list['laiyuan']); ?>"><?php echo ($list['laiyuan']); ?></option>
     <option value="网上开拓">网上开拓</option>
     <option value="电话开拓">电话开拓</option>
   </select> 
  </li>
 
  <li style="float:left;margin-left:3%;display:inline;">
   <label for="customerType"><span id="flag">*</span>客户类型</label>
   <select name="customerType" id="customerType" >
     <option value="<?php echo ($list['type']); ?>"><?php echo ($list['type']); ?></option>
     <option value="互联网">互联网 </option>
     <option value="软件">软件  </option>
	 <option value="个人">个人  </option>
   </select> 
  </li>
  <li style="float:left;margin-left:5%;display:inline;">
   <label for="customerState"><span id="flag">*</span>状态</label>
   <select name="customerState" id="customerState" >
    <option value="<?php echo ($list['status']); ?>"><?php echo ($list['status']); ?></option>
     <option value="启用">启用</option>
     <option value="停用">停用 </option>
   </select> 
  </li>
  
 </span>
  <li style="float:left;margin-left:6%;display:inline;">
    <label for="customerApp">是否为供应商</label>
    <select name="customerApp" id="customerApp">
     <option value="是">否</option>
     <option value="否">是</option>
   </select> 
  </li>

  <li style="clear:both">
   <br/>
   <label for="keyword">说明</label>
   <textarea name="description" id="description" cols="70" rows="5"></textarea>
  </li>
  

  <li>
  <label for="image">相关文件</label>
  <input type="text" name="image" id="image" /> <a href="#" id="upload">上传文件</a> 
 
  </li> 
  
   <li style="display:none">
   <label for="content">内容</label>
   <textarea name="content" id="content" style="width:800px;height:260px;"></textarea>
  <script language="javascript" type="text/javascript" src="/Public/Plugin/kindeditor/kindeditor.js"></script>
  <script language="javascript" type="text/javascript">
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[name="content"]', {
				allowFileManager : true
			});
			
		});
  </script>
  <script>
	 KindEditor.ready(function(K) {
     var upload = K.editor({
		allowFileManager : true
	 });
		 
	 K('#upload').click(function() {
		 upload.loadPlugin('image', function() {
			  upload.plugin.imageDialog({
				  imageUrl : K('#image').val(),
				  clickFn : function(url, title, width, height, border, align) {
					  K('#image').val(url);
					  upload.hideDialog();
				  }
			  });
		  });
		 
	  });
  })
  </script>

  </li> 
 
</ul>

<ul id="table-two" >
  <li>
  <label for="contact">联系人</label>
  <input type="text" name="contact" id="contact" />
  </li>
  <li>
  <label for="email">邮箱</label>
  <input type="email" name="email" id="email" />
  </li>
  <li>
   <label for="tel">联系电话</label>
   <input type="tel" name="tel" id="tel" />
   </li>
 
  <li>
   <label for="traffic">交通路线</label>
   <textarea name="traffic" id="traffic" cols="70" rows="5"></textarea>
  </li><?php endforeach; endif; else: echo "" ;endif; ?>

</ul>
 
  <div   class="table-but"><input type="submit" name="button" id="button" value="修改"></div>
</div>
</form>


</body>
</html>